<include file="Index/Common/header" title="ThinkPHP框架" keywords="开源WEB开发框架"/>
<include file="Index/Common/size-nav"/>
<div id="main">
  <div class="content_wrapper">

      <div class="container-fluid">
          <div class="row">
              <div class="col-sm-12">
                  <aside>
                      <header><i class="fa fa-fw fa-file"></i>新增菜单</header>
                      <section>
                          <div class="container-fluid">
                              <div class="row">
                                  <div class="col-sm-12">
                                      <form class="form-horizontal" role="form" id="add-form">
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">菜单名称</label>
                                              <div class="col-sm-3">
                                                  <input type="text" class="form-control" placeholder="菜单名称" name="title">
                                              </div>
                                              <p class="col-sm-7 help-block">必填</p>
                                          </div>
                                          <hr/>
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">菜单分类</label>
                                              <div class="col-sm-3">
                                                  <select class="form-control" name="cid">
                                                      <option value="0">前台菜单</option>
                                                      <option value="1">后台菜单</option>
                                                  </select>
                                              </div>
                                              <p class="col-sm-7 help-block">必填</p>
                                          </div>
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">父菜单</label>
                                              <div class="col-sm-3">
                                                  <select class="form-control" name="pid">
                                                      <option value="0">一级菜单</option>
                                                      <volist name="pid" id="pid">
                                                        <option value="{$pid.menu_id}">{$pid.title}</option>
                                                      </volist>
                                                  </select>
                                              </div>
                                              <p class="col-sm-7 help-block">必填</p>
                                          </div>
                                          <hr/>
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">模块名</label>
                                              <div class="col-sm-3">
                                                  <input type="text" class="form-control" placeholder="模块名" name="m">
                                              </div>
                                              <p class="col-sm-7 help-block">必填</p>
                                          </div>
                                          <hr/>
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">控制器名</label>
                                              <div class="col-sm-3">
                                                  <input type="text" class="form-control" placeholder="控制器名" name="c">
                                              </div>
                                              <p class="col-sm-7 help-block">必填</p>
                                          </div>
                                          <hr/>
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">方法名</label>
                                              <div class="col-sm-3">
                                                  <input type="text" class="form-control" placeholder="方法名" name="f">
                                              </div>
                                              <p class="col-sm-7 help-block">必填</p>
                                          </div>
                                          <hr/>
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">是否审核通过</label>
                                              <div class="col-sm-3">
                                                  <div class="radio">
                                                      <label>
                                                          <input type="radio" name="status" value="1" checked>通过
                                                      </label>
                                                  </div>
                                                  <div class="radio">
                                                      <label>
                                                          <input type="radio" name="status" value="0">未通过
                                                      </label>
                                                  </div>
                                              </div>
                                              <p class="col-sm-7 help-block">如果是未通过，则此条新闻不在网站前台显示</p>
                                          </div>
                                          <hr/>
                                          <div class="form-group">
                                              <label class="col-sm-2 control-label">备注</label>
                                              <div class="col-sm-10">
                                                  <textarea class="form-control" name="desc"></textarea>
                                              </div>
                                          </div>
                                          <hr/>
                                          <div class="form-group">
                                              <div class=" col-sm-12">
                                                  <button type="button" class="btn btn-primary"id="btn-add-submit">提交</button>
                                              </div>
                                          </div>
                                      </form>
                                  </div>
                              </div>
                          </div>
                      </section>
                  </aside>
              </div>
          </div>
      </div>

  </div>
</div>
<include file="Index/Common/footer"/>
<script type="text/javascript">
  var URL = {
    'add_url':"{:U('Admin/Menu/add')}",
    'jump_url':"{:U('Admin/Menu/index')}"
  }
</script>
</body>
</html>
